#include "../s3c2440_soc.h"

void adc_init(void)
{
	ADCCON = (1<<14) | (49<<6) | (0<<3);

	ADCDLY = 0xff;
}

int adc_read_ain0(void)
{
	return (ADCDAT0 & 0x3ff);
}


